﻿using Microsoft.AspNetCore.Mvc;
using MyBlog.Common;
using MyBlog.IService;
using MyBlog.Model.Entity;
using MyBlog.Service;
using System.Text;

namespace MyBlog.Controllers
{
	public class HomeController : Controller
	{
        private IBlogTypeService _blogTypeService;
        public HomeController(IBlogTypeService blogTypeService)
        {
            _blogTypeService=blogTypeService;
        }
        [HttpGet]
        public IActionResult Index()
		{
            return View(0);
		}
        [HttpGet]
        public IActionResult Blog(int blogType)
        {
            return View(blogType);
        }

    }
}
